<%-- 
    Document   : EditOfferAdmin
    Created on : 23 déc. 2011, 16:01:51
    Author     : Gaëtan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>

<div class="cssEditOffre">
<h1><s:property value="%{getText('offer.edit.title')}" /></h1>

<s:form method="post" action="validateEditOffer" enctype="multipart/form-data">
    <s:a action="offersAdmin"><s:property value="%{getText('offer.edit.cancel')}" /></s:a>
    <s:hidden name="offer.id" />
    <s:hidden name="offer.version" />
    <s:textfield name="offer.entreprise" label="%{getText('offer.entreprise')}%{getText('mandatory')}" value="%{offer.entreprise}" />
    <s:textfield name="offer.titre" label="%{getText('offer.titre')}%{getText('mandatory')}" value="%{offer.titre}" />
    <s:textarea name="offer.enonce" label="%{getText('offer.enonce')}%{getText('mandatory')}" value="%{offer.enonce}" />
    <s:textfield name="offer.adresse" label="%{getText('offer.adresse')}%{getText('mandatory')}" value="%{offer.adresse}" />
    <s:textfield name="offer.codePostal" label="%{getText('offer.codePostal')}%{getText('mandatory')}" value="%{offer.codePostal}" />
    <s:textfield name="offer.ville" label="%{getText('offer.ville')}%{getText('mandatory')}" value="%{offer.ville}" />
    <s:textfield name="dateEnvoi" label="%{getText('offer.dateEnvoi')}%{getText('mandatory')}" value="%{dateEnvoi}" />
    <s:textfield name="dateOffre" label="%{getText('offer.dateOffre')}%{getText('mandatory')}" value="%{dateOffre}" />
    <s:textfield name="offer.maitre" label="%{getText('offer.maitre')}" value="%{offer.maitre}" />
    <s:checkbox name="offer.istia" label="%{getText('offer.istia')}" value="%{offer.istia}"/>
    <s:checkbox name="offer.visible" label="%{getText('offer.visible')}" value="%{offer.visible}"/>
    <s:textfield label="%{getText('offer.file')}" value="%{offer.file}" disabled="true"/>
    <s:file name="pdf" label="%{getText('offer.file.new')}" value="%{offer.file}"/>
    <s:hidden name="offer.file" />
    <s:submit value="%{getText('offer.edit.submit')}" />
</s:form>
 
</div>